using GameFramework.Request;

namespace GameFramework.Rpc
{
    /// <summary>
    /// RPC服务接口
    /// </summary>
    public interface IRpcService
    {
        /// <summary>
        /// 分配RPC请求等待器
        /// </summary>
        IRpcWaiter Allocate();
        
        /// <summary>
        /// 设置指定RPC请求的响应
        /// </summary>
        void SetResponse(uint rpcId, IResponse response);
    }
}